<template>
  <div>
    <div class="box">
      <span class="classday">当前生产日：{{ itemDetials.classDay }}</span>
      <div class="centeritem">
        <dv-decoration-7
          style="width: 150px; height: 30px; font-size: 18px; color: wheat"
          >当班生产数量</dv-decoration-7
        >
        <h1>{{ itemDetials.classNumber }}</h1>
      </div>
      <div class="centeritem">
        <dv-decoration-7
          style="width: 150px; height: 30px; font-size: 18px; color: wheat"
          >今日生产数量</dv-decoration-7
        >
        <h1>{{ itemDetials.dayNumber }}</h1>
      </div>
      <div class="rightitem">
        <div class="titext">
          <p class="title1">本日</p>
          <div class="itemFirst">
            <div v-for="(item, index) in itemDetials.dayMapNumber" :key="index">
              <p>
                {{ item.className }}：<span style="color: dodgerblue"
                  >{{ item.classCount }}
                </span>
              </p>
            </div>
          </div>

          <!-- <p>B班：0</p> -->
        </div>
        <div class="bitext">
          <p class="title1">本月</p>
          <div class="itemFirst">
            <div
              v-for="(item, index) in itemDetials.monthMapNumber"
              :key="index"
            >
              <p>
                {{ item.className }}：<span style="color: dodgerblue"
                  >{{ item.classCount }}
                </span>
              </p>
            </div>
          </div>
        </div>
      </div>
    </div>
    <dv-decoration-10
      style="width: 800px; height: 5px; margin: -30px 0 0 30px"
    />
  </div>
</template>

<script>
export default {
  props: {
    itemDetials: {
      type: Object,
      default: () => ({}),
    },
  },
  data() {
    return {};
  },
  methods: {},
  created() {},
};
</script>

<style lang="scss" scoped>
.classday {
  position: absolute;
}
.box {
  display: flex;
  width: 850px;
  height: 340px;
  padding: 0 0px 10px 30px;
  color: #8993f2;
  .leftitem,
  .centeritem {
    width: 32%;
    height: 60%;
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    h1 {
      font-weight: 700;
      color: dodgerblue;
      margin-top: 100px;
    }
  }
  .rightitem {
    font-size: 18px;
    color: #828df3;
    width: 38%;
    height: 100%;
    display: flex;
    flex-direction: column;
    .title1 {
      font-size: 22px;
      color: wheat;
      text-align: center;
      width: 85%;
    }
    p {
      line-height: 10px;
      width: 140px;
      text-align: start;
    }
    .itemFirst {
      width: 100%;
      height: 50%;
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;
    }
    .titext,
    .bitext {
      height: 50%;
    }
  }
}
</style>
